package com.schematic.flixel.spaceinvaders
{
import org.flixel.FlxGroup;

public class Barrier extends FlxGroup
{
    //--------------------------------------------------------------------------
    //
    //  Constants
    //
    //--------------------------------------------------------------------------
    
    //----------------------------------
    //  WIDTH
    //----------------------------------
    /**
     * 44
     */
    public static const WIDTH:int = 44;

    //----------------------------------
    //  HEIGHT
    //----------------------------------
    /**
     * 44
     */
    public static const HEIGHT:int = 44;

    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     * Creates a new instance of this class.
     */
    public function Barrier(x:Number=0, y:Number=0)
    {
        super();
        this.x = x;
        this.y = y;
        add(new BarrierBlock(4, 24));
        
        add(new BarrierBlock(8, 12));
        add(new BarrierBlock(8, 28));
        
        add(new BarrierBlock(12, 8));
        add(new BarrierBlock(12, 24));

        add(new BarrierBlock(16, 0));
        add(new BarrierBlock(16, 16));
        add(new BarrierBlock(20, 0));
        add(new BarrierBlock(20, 16));
        add(new BarrierBlock(24, 0));
        add(new BarrierBlock(24, 16));
    
        add(new BarrierBlock(28, 8));
        add(new BarrierBlock(28, 24));

        add(new BarrierBlock(32, 12));
        add(new BarrierBlock(32, 28));   
        
        add(new BarrierBlock(36, 24));     
    }

}
}